import request from '@/utils/request'

// 查询反馈意见列表
export function listFaceback(query) {
  return request({
    url: '/member/faceback/list',
    method: 'get',
    params: query
  })
}

// 查询反馈意见详细
export function getFaceback(id) {
  return request({
    url: '/member/faceback/' + id,
    method: 'get'
  })
}

// 新增反馈意见
export function addFaceback(data) {
  return request({
    url: '/member/faceback',
    method: 'post',
    data: data
  })
}

// 修改反馈意见
export function updateFaceback(data) {
  return request({
    url: '/member/faceback',
    method: 'put',
    data: data
  })
}

// 删除反馈意见
export function delFaceback(id) {
  return request({
    url: '/member/faceback/' + id,
    method: 'delete'
  })
}

// 导出反馈意见
export function exportFaceback(query) {
  return request({
    url: '/member/faceback/export',
    method: 'get',
    params: query
  })
}